package com.xiaoshuidi.cloud.module.member.pojo.comment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@TableName(value = "member_comment", autoResultMap = true)
@KeySequence("member_comment_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberComment extends TenantBaseDO {
    private static final long serialVersionUID = -5646072160470261132L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "门店名称")
    private String apartmentName;

    @Schema(description = "评价类型1-新租,2-续租,3-退租,4-企业入住人评价,5-员工迁出评价")
    private Integer commentType;

    @Schema(description = "房源id")
    private Long roomId;

    @Schema(description = "签约日期")
    private Date signDay;

    @Schema(description = "管家id")
    private Long stewardId;

    @Schema(description = "管家")
    private String steward;

    @Schema(description = "管家服务0-5分")
    private BigDecimal stewardScore;

    @Schema(description = "房屋环境0-5分")
    private BigDecimal houseScore;

    @Schema(description = "物业环境0-5分")
    private BigDecimal propertyEnvScore;

    @Schema(description = "周边配套0-5分")
    private BigDecimal aroundSupportScore;

    @Schema(description = "入住满意度0-5分")
    private BigDecimal checkInFeelScore;

    @Schema(description = " 线上运营0-5分")
    private BigDecimal onlineScore;

    @Schema(description = "综合评价分0-5分")
    private BigDecimal compositeScore;

    @Schema(description = "物业服务0-5分")
    private BigDecimal propertyScore;

    @Schema(description = "续租便捷度0-5分")
    private BigDecimal reletConvenienceScore;

    @Schema(description = "整体满意度0-5分")
    private BigDecimal overallScore;

    @Schema(description = "居住舒适度0-5分")
    private BigDecimal livingScore;

    @Schema(description = "退租/迁出便捷度0-5分")
    private BigDecimal rentOutConvenienceScore;

    @Schema(description = "二次入住与推荐0-5分")
    private BigDecimal recommendScore;

    @Schema(description = "品牌总体评价0-5分")
    private BigDecimal brandScore;

    @Schema(description = "建议")
    private String content;

    @Schema(description = "图片")
    private String picture;

    @Schema(description = "是否评价")
    private Boolean status;


    @Schema(description = "消息id")
    private Long messageId;

}
